package com.syq.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Coursetype implements Serializable {
    private String ctno;

    private String ctname;

    private String ctimg;

    private String ctstate;

    private String ctdesc;

    private static final long serialVersionUID = 1L;

    public String getCtno() {
        return ctno;
    }

    public void setCtno(String ctno) {
        this.ctno = ctno;
    }

    public String getCtname() {
        return ctname;
    }

    public void setCtname(String ctname) {
        this.ctname = ctname;
    }

    public String getCtimg() {
        return ctimg;
    }

    public void setCtimg(String ctimg) {
        this.ctimg = ctimg;
    }

    public String getCtstate() {
        return ctstate;
    }

    public void setCtstate(String ctstate) {
        this.ctstate = ctstate;
    }

    public String getCtdesc() {
        return ctdesc;
    }

    public void setCtdesc(String ctdesc) {
        this.ctdesc = ctdesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Coursetype other = (Coursetype) that;
        return (this.getCtno() == null ? other.getCtno() == null : this.getCtno().equals(other.getCtno()))
            && (this.getCtname() == null ? other.getCtname() == null : this.getCtname().equals(other.getCtname()))
            && (this.getCtimg() == null ? other.getCtimg() == null : this.getCtimg().equals(other.getCtimg()))
            && (this.getCtstate() == null ? other.getCtstate() == null : this.getCtstate().equals(other.getCtstate()))
            && (this.getCtdesc() == null ? other.getCtdesc() == null : this.getCtdesc().equals(other.getCtdesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCtno() == null) ? 0 : getCtno().hashCode());
        result = prime * result + ((getCtname() == null) ? 0 : getCtname().hashCode());
        result = prime * result + ((getCtimg() == null) ? 0 : getCtimg().hashCode());
        result = prime * result + ((getCtstate() == null) ? 0 : getCtstate().hashCode());
        result = prime * result + ((getCtdesc() == null) ? 0 : getCtdesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ctno=").append(ctno);
        sb.append(", ctname=").append(ctname);
        sb.append(", ctimg=").append(ctimg);
        sb.append(", ctstate=").append(ctstate);
        sb.append(", ctdesc=").append(ctdesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}